<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <head th:include="common/header::header" />
    <body th:include="common/footer::footer" />
</head>
<body>
	
	<!-- 面包屑 -->
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页
		<span class="c-gray en">&gt;</span> 系统管理 
		<span class="c-gray en">&gt;</span> XXXXX 
		<span class="c-gray en">&gt;</span> OOOOO
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
			href="javascript:location.replace(location.href);" title="刷新">
			<i class="Hui-iconfont">&#xe68f;</i>
		</a>
	</nav>
	
	<!-- 主体内容  -->
	<div class="page-container">
		<div class="mt-20">
			 <form th:action="@{/${vo.tablename_camelCase}/save}" method="post" class="form form-horizontal validform" id="form-add">
				 
	 	 <#if vo.columns?exists>
		  <#list vo.columns as item>
			<#if item.columnHiddenFlag><#-- 隐藏域不显示 -->
			 	<input type="hidden" name="${item.columnName}" th:id="${item.columnName}"  th:value=${r'${vo.id}'} />
			<#elseif item.columnType == "0">
				<#-- 普通文本 -->
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>${item.columnRemark}：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input  class="input-text radius"  type="text"   name="${item.columnName}"  id="${item.columnName}"  th:value="${r'${vo.'}${item.columnName}${r'}'}"   placeholder="请输入${item.columnRemark}"    datatype="*" nullmsg="请输入${item.columnRemark}"   >
					</div>
				</div>
			<#elseif item.columnType == "1">
				<#-- 时间渲染 -->
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>${item.columnRemark}：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input class="input-text Wdate radius"   name="${item.columnName}"  id="${item.columnName}" "   th:value="${r'${vo.'}${item.columnName}${r'}'}"   onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm'})"  datatype="*" nullmsg="请选择时间" readonly="" type="text">
					</div>
				</div>
			<#elseif item.columnType == "2">
				<#-- 下拉框 -->
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>${item.columnRemark}：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<div th:include="common/fragment::selectNormal('${item.columnName}','',${r'${vo.'}${item.columnName}${r'}'})"></div>
					</div>
				</div>
			<#elseif item.columnType == "3">
				<#-- 上传文件 -->
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">${item.columnRemark}：</label>
					<div class="formControls col-xs-8 col-sm-9">							
						<div th:include="common/fragment::uploader ('${item.columnName}','img',false,${r'${vo.'}${item.columnName}${r'}'})"></div>
					</div>
				</div>
			<#elseif item.columnType == "4">
				<#-- 多行输入框 -->
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">${item.columnRemark}：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea  class="textarea radius"  th:name="${item.columnName}" th:id="${r'${vo.'}${item.columnName}${r'}'}"   th:text="${r'${vo.'}${item.columnName}${r'}'}"   cols=""  rows=""  datatype="/^\s*$/|*0-200" placeholder="请输入${item.columnRemark}"></textarea>
					</div>
				</div>
			<#elseif item.columnType == "5">
				<#-- 大文本 -->
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">${item.columnRemark}：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<div th:include="common/fragment::kindeditor('${item.columnName}',${r'${vo.'}${item.columnName}${r'}'})"></div>
					</div>
				</div>
			<#else>
				未指定
			</#if>
				
		  </#list>
	    </#if>
			 	
				
				
			</form>
		</div>
	</div>	
	
	
	<script type="text/javascript"  th:inline="javascript" >
		$(function(){				
			 
		});
	</script>	
	
	
	
</body>
</html>
